/*
 * Copyright (c) 2006, 2021, webrx.cn All rights reserved.
 *
 */
package cn.webrx.mapper;

import cn.webrx.entity.User;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;

import java.io.Serial;
import java.util.List;

/**
 * <p>Project: mybatis2021 - UserMapper
 * <p>Powered by webrx On 2021-07-12 11:22:36
 * <p>Created by IntelliJ IDEA
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 15
 */
public interface UserMapper {
    @Select("select version()")
    public String ver();

    public List<String> tbs();

    public int save(User user);

    @Select("select * from t_user")
    public List<User> queryAll();

    @Delete("delete from t_user where id = #{id}")
    public int delById(int id);
}
